/*
 * @Author: fisher
 * @Date: 2024-02-06 10:35:28
 * @LastEditors: fisher luthor-li@qq.com
 * @LastEditTime: 2024-02-06 10:35:36
 * @FilePath: \allback\models\User.js
 * @Description:
 */
// models/User.js
const mongoose = require('mongoose')
const { Schema } = mongoose
const userSchema = new Schema({
  username: { type: String, required: true, unique: true },
  password: { type: String, required: true },
  email: { type: String, required: true, unique: true }
  // 可以增加更多字段，如注册时间等
})
const User = mongoose.model('User', userSchema)
module.exports = User
